PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Hypnotic / Polar Rolling / HDFX with Flexi - AdamFX n Martin - Bubble Gum in our Mindz .milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=3 |
| 3 | PSVERSION_WARP=0 |
| 4 | PSVERSION_COMP=3 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.980 |
| 8 | fDecay=0.500 |
| 9 | fVideoEchoZoom=1.000 |
| 10 | fVideoEchoAlpha=0.500 |
| 11 | nVideoEchoOrientation=3 |
| 12 | nWaveMode=7 |
| 13 | bAdditiveWaves=0 |
| 14 | bWaveDots=0 |
| 15 | bWaveThick=0 |
| 16 | bModWaveAlphaByVolume=0 |
| 17 | bMaximizeWaveColor=1 |
| 18 | bTexWrap=0 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=0 |
| 22 | bDarken=1 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=0.001 |
| 26 | fWaveScale=1.000 |
| 27 | fWaveSmoothing=0.750 |
| 28 | fWaveParam=0.000 |
| 29 | fModWaveAlphaStart=0.750 |
| 30 | fModWaveAlphaEnd=0.950 |
| 31 | fWarpAnimSpeed=1.459 |
| 32 | fWarpScale=2.007 |
| 33 | fZoomExponent=1.00000 |
| 34 | fShader=0.000 |
| 35 | zoom=0.99990 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=0.01000 |
| 42 | sx=0.99990 |
| 43 | sy=1.00000 |
| 44 | wave_r=0.000 |
| 45 | wave_g=0.400 |
| 46 | wave_b=0.000 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.500 |
| 49 | ob_size=0.000 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.000 |
| 52 | ob_b=1.000 |
| 53 | ob_a=0.300 |
| 54 | ib_size=0.260 |
| 55 | ib_r=0.250 |
| 56 | ib_g=0.250 |
| 57 | ib_b=0.250 |
| 58 | ib_a=0.000 |
| 59 | nMotionVectorsX=44.800 |
| 60 | nMotionVectorsY=24.000 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=0.900 |
| 64 | mv_r=1.000 |
| 65 | mv_g=1.000 |
| 66 | mv_b=1.000 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=1.000 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.000 |
| 75 | wavecode_0_enabled=1 |
| 76 | wavecode_0_samples=512 |
| 77 | wavecode_0_sep=0 |
| 78 | wavecode_0_bSpectrum=0 |
| 79 | wavecode_0_bUseDots=0 |
| 80 | wavecode_0_bDrawThick=1 |
| 81 | wavecode_0_bAdditive=0 |
| 82 | wavecode_0_scaling=1.00000 |
| 83 | wavecode_0_smoothing=0.00000 |
| 84 | wavecode_0_r=1.000 |
| 85 | wavecode_0_g=1.000 |
| 86 | wavecode_0_b=1.000 |
| 87 | wavecode_0_a=1.000 |
| 88 | wave_0_per_point1=//q1 = state; |
| 89 | wave_0_per_point2=//q2 = basstime; |
| 90 | wave_0_per_point3= |
| 91 | wave_0_per_point4=q1 = 0; |
| 92 | wave_0_per_point5=speed = bass_att*0.2; |
| 93 | wave_0_per_point6=v = sample*100000 + value2*bass*0.1; |
| 94 | wave_0_per_point7= |
| 95 | wave_0_per_point8=//state 0 elipse |
| 96 | wave_0_per_point9=xs = xs + sin(v*0.1 + sin(v)*0.1)*speed*atan(v*1.51); |
| 97 | wave_0_per_point10=ys = ys + sin(v*0.1 + cos(v)*0.1)*speed*atan(v); |
| 98 | wave_0_per_point11= |
| 99 | wave_0_per_point12=x = 0.5 + 0.5*sin(xs*0.1)*cos(time*2 + ys); |
| 100 | wave_0_per_point13=y = 0.5 + 0.5*sin(ys*0.1)*cos(time*2.1 + xs); |
| 101 | wave_0_per_point14= |
| 102 | wave_0_per_point15=x = x; |
| 103 | wave_0_per_point16=y = y; |
| 104 | wave_0_per_point17=y = y; |
| 105 | wave_0_per_point18= |
| 106 | wave_0_per_point19=//r = 0.5 + 0.5*sin(time*1.22) + 0.1; |
| 107 | wave_0_per_point20=g = 1;//0.4 + 0.4*sin(time*1.307) + x; |
| 108 | wave_0_per_point21=//b = 0.4 + 0.4*sin(time*1.959); |
| 109 | wave_0_per_point22= |
| 110 | wave_0_per_point23= |
| 111 | wave_0_per_point24=xs = if(above(xs,1000),0 ,xs); |
| 112 | wave_0_per_point25=ys = if(above(ys,1000),0 ,ys); |
| 113 | wavecode_1_enabled=1 |
| 114 | wavecode_1_samples=512 |
| 115 | wavecode_1_sep=0 |
| 116 | wavecode_1_bSpectrum=0 |
| 117 | wavecode_1_bUseDots=0 |
| 118 | wavecode_1_bDrawThick=1 |
| 119 | wavecode_1_bAdditive=0 |
| 120 | wavecode_1_scaling=1.00000 |
| 121 | wavecode_1_smoothing=0.00000 |
| 122 | wavecode_1_r=1.000 |
| 123 | wavecode_1_g=1.000 |
| 124 | wavecode_1_b=1.000 |
| 125 | wavecode_1_a=1.000 |
| 126 | wave_1_per_point1=//q1 = state; |
| 127 | wave_1_per_point2=//q2 = basstime; |
| 128 | wave_1_per_point3= |
| 129 | wave_1_per_point4=q1 = 0; |
| 130 | wave_1_per_point5=speed = bass_att*0.2; |
| 131 | wave_1_per_point6=v = sample*100000 + value2*bass*0.1; |
| 132 | wave_1_per_point7= |
| 133 | wave_1_per_point8=//state 0 elipse |
| 134 | wave_1_per_point9=xs = xs + sin(v*0.1 + sin(v)*0.1)*speed*atan(v*1.51); |
| 135 | wave_1_per_point10=ys = ys + sin(v*0.1 + cos(v)*0.1)*speed*atan(v); |
| 136 | wave_1_per_point11= |
| 137 | wave_1_per_point12=x = 0.5 + 0.5*sin(xs*0.1)*cos(time*2 + ys + 0.7); |
| 138 | wave_1_per_point13=y = 0.5 + 0.5*sin(ys*0.1)*cos(time*2.1 + xs + 0.7); |
| 139 | wave_1_per_point14= |
| 140 | wave_1_per_point15=x = x; |
| 141 | wave_1_per_point16=y = y; |
| 142 | wave_1_per_point17=y = y; |
| 143 | wave_1_per_point18= |
| 144 | wave_1_per_point19=//r = 0.5 + 0.5*sin(time*1.4) + 0.1; |
| 145 | wave_1_per_point20=g = 1;//0.4 + 0.4*sin(time*1.307) + x; |
| 146 | wave_1_per_point21=//b = 0.4 + 0.4*sin(time*1.259); |
| 147 | wave_1_per_point22= |
| 148 | wave_1_per_point23= |
| 149 | wave_1_per_point24=xs = if(above(xs,1000),0 ,xs); |
| 150 | wave_1_per_point25=ys = if(above(ys,1000),0 ,ys); |
| 151 | wavecode_2_enabled=1 |
| 152 | wavecode_2_samples=512 |
| 153 | wavecode_2_sep=0 |
| 154 | wavecode_2_bSpectrum=0 |
| 155 | wavecode_2_bUseDots=0 |
| 156 | wavecode_2_bDrawThick=1 |
| 157 | wavecode_2_bAdditive=0 |
| 158 | wavecode_2_scaling=1.00000 |
| 159 | wavecode_2_smoothing=0.00000 |
| 160 | wavecode_2_r=1.000 |
| 161 | wavecode_2_g=1.000 |
| 162 | wavecode_2_b=1.000 |
| 163 | wavecode_2_a=1.000 |
| 164 | wave_2_per_point1=//q1 = state; |
| 165 | wave_2_per_point2=//q2 = basstime; |
| 166 | wave_2_per_point3= |
| 167 | wave_2_per_point4=q1 = 0; |
| 168 | wave_2_per_point5=speed = bass_att*0.2; |
| 169 | wave_2_per_point6=v = sample*100000 + value2*bass*0.1; |
| 170 | wave_2_per_point7= |
| 171 | wave_2_per_point8=//state 0 elipse |
| 172 | wave_2_per_point9=xs = xs + sin(v*0.1 + sin(v)*0.1)*speed*atan(v*1.51); |
| 173 | wave_2_per_point10=ys = ys + sin(v*0.1 + cos(v)*0.1)*speed*atan(v); |
| 174 | wave_2_per_point11= |
| 175 | wave_2_per_point12=x = 0.5 + 0.5*sin(xs*0.1)*cos(time*2 + ys + 1.4); |
| 176 | wave_2_per_point13=y = 0.5 + 0.5*sin(ys*0.1)*cos(time*2.1 + xs + 1.4); |
| 177 | wave_2_per_point14= |
| 178 | wave_2_per_point15=x = x; |
| 179 | wave_2_per_point16=y = y; |
| 180 | wave_2_per_point17=y = y; |
| 181 | wave_2_per_point18= |
| 182 | wave_2_per_point19=//r = 0.5 + 0.5*sin(time*1.4674) + 0.1; |
| 183 | wave_2_per_point20=g = 1;//0.4 + 0.4*sin(time*1.807) + x; |
| 184 | wave_2_per_point21=//b = 0.4 + 0.4*sin(time*1.359); |
| 185 | wave_2_per_point22= |
| 186 | wave_2_per_point23= |
| 187 | wave_2_per_point24=xs = if(above(xs,1000),0 ,xs); |
| 188 | wave_2_per_point25=ys = if(above(ys,1000),0 ,ys); |
| 189 | wavecode_3_enabled=0 |
| 190 | wavecode_3_samples=512 |
| 191 | wavecode_3_sep=0 |
| 192 | wavecode_3_bSpectrum=0 |
| 193 | wavecode_3_bUseDots=0 |
| 194 | wavecode_3_bDrawThick=0 |
| 195 | wavecode_3_bAdditive=0 |
| 196 | wavecode_3_scaling=1.00000 |
| 197 | wavecode_3_smoothing=0.00000 |
| 198 | wavecode_3_r=1.000 |
| 199 | wavecode_3_g=1.000 |
| 200 | wavecode_3_b=1.000 |
| 201 | wavecode_3_a=1.000 |
| 202 | wave_3_per_point1=speed = bass*0.1; |
| 203 | wave_3_per_point2=v = sample*10000 + value2*bass*0.1; |
| 204 | wave_3_per_point3= |
| 205 | wave_3_per_point4=//state 0 elipse |
| 206 | wave_3_per_point5=xs = xs + (equal(0,q1))*sin(v*1)*speed*atan(v*1.51); |
| 207 | wave_3_per_point6=ys = ys + (equal(0,q1))*sin(v*1)*speed; |
| 208 | wave_3_per_point7= |
| 209 | wave_3_per_point8=x = 0.5 + 0.5*sin(xs*0.1)*cos(time*2 + xs); |
| 210 | wave_3_per_point9=y = 0.5 + 0.5*sin(ys*0.1)*cos(time*2.1 + xs); |
| 211 | wave_3_per_point10= |
| 212 | wave_3_per_point11=y = y - sample*0.1; |
| 213 | wave_3_per_point12= |
| 214 | wave_3_per_point13=x = x*0.6 + 0.2; |
| 215 | wave_3_per_point14=y = y + bass*0.1; |
| 216 | wave_3_per_point15=y = y*0.8; |
| 217 | wave_3_per_point16= |
| 218 | wave_3_per_point17=r = 0.5 + 0.5*sin(time*6.22) + 0.1; |
| 219 | wave_3_per_point18=g = 0.4 + 0.4*sin(time*5.307); |
| 220 | wave_3_per_point19=b = 0.4 + 0.4*sin(time*4.959)*x; |
| 221 | wave_3_per_point20= |
| 222 | wave_3_per_point21=xs = if(above(xs,1000),0 ,xs); |
| 223 | wave_3_per_point22=ys = if(above(ys,1000),0 ,ys); |
| 224 | shapecode_0_enabled=1 |
| 225 | shapecode_0_sides=4 |
| 226 | shapecode_0_additive=0 |
| 227 | shapecode_0_thickOutline=0 |
| 228 | shapecode_0_textured=1 |
| 229 | shapecode_0_num_inst=1 |
| 230 | shapecode_0_x=0.500 |
| 231 | shapecode_0_y=0.500 |
| 232 | shapecode_0_rad=2.66710 |
| 233 | shapecode_0_ang=0.00000 |
| 234 | shapecode_0_tex_ang=0.00000 |
| 235 | shapecode_0_tex_zoom=0.27425 |
| 236 | shapecode_0_r=1.000 |
| 237 | shapecode_0_g=1.000 |
| 238 | shapecode_0_b=1.000 |
| 239 | shapecode_0_a=0.100 |
| 240 | shapecode_0_r2=1.000 |
| 241 | shapecode_0_g2=0.000 |
| 242 | shapecode_0_b2=0.000 |
| 243 | shapecode_0_a2=0.400 |
| 244 | shapecode_0_border_r=0.000 |
| 245 | shapecode_0_border_g=0.000 |
| 246 | shapecode_0_border_b=0.000 |
| 247 | shapecode_0_border_a=0.100 |
| 248 | shape_0_per_frame1=tex_capture = q1; |
| 249 | shape_0_per_frame2= |
| 250 | shape_0_per_frame3=saw = saw - 0.001*bass; |
| 251 | shape_0_per_frame4=saw = if(below(saw,0.2),0.6,saw); |
| 252 | shape_0_per_frame5= |
| 253 | shape_0_per_frame6=tex_zoom = saw; |
| 254 | shape_0_per_frame7= |
| 255 | shape_0_per_frame8= |
| 256 | shape_0_per_frame9= |
| 257 | shapecode_1_enabled=1 |
| 258 | shapecode_1_sides=4 |
| 259 | shapecode_1_additive=0 |
| 260 | shapecode_1_thickOutline=0 |
| 261 | shapecode_1_textured=1 |
| 262 | shapecode_1_num_inst=1 |
| 263 | shapecode_1_x=0.500 |
| 264 | shapecode_1_y=0.500 |
| 265 | shapecode_1_rad=2.66710 |
| 266 | shapecode_1_ang=0.00000 |
| 267 | shapecode_1_tex_ang=0.00000 |
| 268 | shapecode_1_tex_zoom=0.27425 |
| 269 | shapecode_1_r=1.000 |
| 270 | shapecode_1_g=1.000 |
| 271 | shapecode_1_b=1.000 |
| 272 | shapecode_1_a=0.100 |
| 273 | shapecode_1_r2=1.000 |
| 274 | shapecode_1_g2=0.000 |
| 275 | shapecode_1_b2=0.000 |
| 276 | shapecode_1_a2=0.400 |
| 277 | shapecode_1_border_r=0.000 |
| 278 | shapecode_1_border_g=0.000 |
| 279 | shapecode_1_border_b=0.000 |
| 280 | shapecode_1_border_a=0.100 |
| 281 | shape_1_per_frame1=tex_capture = q1; |
| 282 | shape_1_per_frame2= |
| 283 | shape_1_per_frame3=saw = saw - 0.001*bass; |
| 284 | shape_1_per_frame4=saw = if(below(saw,0.1),0.6,saw); |
| 285 | shape_1_per_frame5= |
| 286 | shape_1_per_frame6=tex_zoom = saw; |
| 287 | shapecode_2_enabled=1 |
| 288 | shapecode_2_sides=4 |
| 289 | shapecode_2_additive=0 |
| 290 | shapecode_2_thickOutline=0 |
| 291 | shapecode_2_textured=1 |
| 292 | shapecode_2_num_inst=1 |
| 293 | shapecode_2_x=0.500 |
| 294 | shapecode_2_y=0.500 |
| 295 | shapecode_2_rad=2.66718 |
| 296 | shapecode_2_ang=0.00000 |
| 297 | shapecode_2_tex_ang=0.00000 |
| 298 | shapecode_2_tex_zoom=0.36964 |
| 299 | shapecode_2_r=1.000 |
| 300 | shapecode_2_g=1.000 |
| 301 | shapecode_2_b=1.000 |
| 302 | shapecode_2_a=0.100 |
| 303 | shapecode_2_r2=0.000 |
| 304 | shapecode_2_g2=1.000 |
| 305 | shapecode_2_b2=0.000 |
| 306 | shapecode_2_a2=0.400 |
| 307 | shapecode_2_border_r=1.000 |
| 308 | shapecode_2_border_g=0.000 |
| 309 | shapecode_2_border_b=0.000 |
| 310 | shapecode_2_border_a=0.100 |
| 311 | shapecode_3_enabled=0 |
| 312 | shapecode_3_sides=4 |
| 313 | shapecode_3_additive=0 |
| 314 | shapecode_3_thickOutline=0 |
| 315 | shapecode_3_textured=1 |
| 316 | shapecode_3_num_inst=1 |
| 317 | shapecode_3_x=0.500 |
| 318 | shapecode_3_y=0.500 |
| 319 | shapecode_3_rad=2.66718 |
| 320 | shapecode_3_ang=0.00000 |
| 321 | shapecode_3_tex_ang=0.00000 |
| 322 | shapecode_3_tex_zoom=0.30294 |
| 323 | shapecode_3_r=1.000 |
| 324 | shapecode_3_g=1.000 |
| 325 | shapecode_3_b=1.000 |
| 326 | shapecode_3_a=0.100 |
| 327 | shapecode_3_r2=0.000 |
| 328 | shapecode_3_g2=1.000 |
| 329 | shapecode_3_b2=0.000 |
| 330 | shapecode_3_a2=0.400 |
| 331 | shapecode_3_border_r=1.000 |
| 332 | shapecode_3_border_g=1.000 |
| 333 | shapecode_3_border_b=1.000 |
| 334 | shapecode_3_border_a=0.100 |
| 335 | per_frame_init_1=prox = 1; |
| 336 | per_frame_1=dec_med = pow (0.8, 30/fps); |
| 337 | per_frame_2=dec_slow = pow (0.8, 30/fps); |
| 338 | per_frame_3=//dec_xlow = pow (0.999, 30/fps); |
| 339 | per_frame_4=beat = max (max (bass, mid), treb); |
| 340 | per_frame_5=avg = avg*dec_slow + beat*(1-dec_slow); |
| 341 | per_frame_6=is_beat = above(beat, avg+peak) * above (time, t0+.2); |
| 342 | per_frame_7=t0 = is_beat*time + (1-is_beat)*t0; |
| 343 | per_frame_8=peak = is_beat * beat + (1-is_beat)*peak*dec_med; |
| 344 | per_frame_9=index = (index + is_beat) %16; |
| 345 | per_frame_10=index2 = (index2 + is_beat*bnot(index))%4; |
| 346 | per_frame_11= |
| 347 | per_frame_12=q22 = peak; |
| 348 | per_frame_13=q22slow = q22slow*dec_slow + q22*(1-dec_slow); |
| 349 | per_frame_14=q23 = q22slow; |
| 350 | per_frame_15=q24 = is_beat; |
| 351 | per_frame_16=q26 = bass_att + mid_att + treb_att; |
| 352 | per_frame_17=vol = vol*dec_med + (1-dec_med)*q26; |
| 353 | per_frame_18=q27 = index + 1; |
| 354 | per_frame_19=q28 = index2 ; |
| 355 | per_frame_20= |
| 356 | per_frame_21=k1 = is_beat*equal(index%2,0); |
| 357 | per_frame_22=p1 = k1*(p1+1) + (1-k1)*p1; |
| 358 | per_frame_23=p2 = dec_med * p2+ (1-dec_med)*p1; |
| 359 | per_frame_24=//rott = p2 * 3.1416/2; |
| 360 | per_frame_25=rott = rott + q22*16*(1-dec_med)/fps*below(q27,6); |
| 361 | per_frame_26=//*****tunnel tilting |
| 362 | per_frame_27=q1 = cos(rott); |
| 363 | per_frame_28=q2 = sin(rott); |
| 364 | per_frame_29=q3 = -q2; |
| 365 | per_frame_30=q4 = q1; |
| 366 | per_frame_31= |
| 367 | per_frame_32=//****tunnel viewpoint x,y |
| 368 | per_frame_33=vtrig = is_beat * bnot(index%2); |
| 369 | per_frame_34=vx = vx * bnot(vtrig) + vtrig * (int(rand(100))/100-.5); |
| 370 | per_frame_35=vy = vy * bnot(vtrig) + vtrig * (int(rand(100))/100-.5); |
| 371 | per_frame_36=vx = vx* below(index%15,15); //### |
| 372 | per_frame_37=vy = vy* below(index%15,15); |
| 373 | per_frame_38=q5 = vx*5; |
| 374 | per_frame_39=q6 = vy*5; |
| 375 | per_frame_40= |
| 376 | per_frame_41=//***tunnel width |
| 377 | per_frame_42=q21 = (1+sin(time/12))/8+.01; |
| 378 | per_frame_43= |
| 379 | per_frame_44= |
| 380 | per_frame_45=//*********************** |
| 381 | per_frame_46=trig1= q24*bnot(index%12); |
| 382 | per_frame_47=trig2= q24*bnot((index+4)%12); |
| 383 | per_frame_48=trig3= q24*bnot((index+8)%12); |
| 384 | per_frame_49=trel = trel + vol/fps; |
| 385 | per_frame_50=z0 = 1; |
| 386 | per_frame_51=speed = vol/2; |
| 387 | per_frame_52=hx = sin(trel); |
| 388 | per_frame_53=hy = cos(trel); |
| 389 | per_frame_54= |
| 390 | per_frame_55=p1z = bnot(trig1)* (p1z + (5+p1z)*speed/fps)+trig1*z0; |
| 391 | per_frame_56=p1z = max(p1z,.1); |
| 392 | per_frame_57=q9 = hx/(p1z); |
| 393 | per_frame_58=q10 = hy/(p1z); |
| 394 | per_frame_59=q11 = p1z; |
| 395 | per_frame_60=q12 = .1+.02*q26*bnot((index+2)%3)*p1z*exp(-p1z/100); |
| 396 | per_frame_61= |
| 397 | per_frame_62=p2z = bnot(trig2)* (p2z + (5+p2z)*speed/fps)+trig2*z0; |
| 398 | per_frame_63=p2z = max(p2z,.1); |
| 399 | per_frame_64=q13 = 2*hx/(p2z); |
| 400 | per_frame_65=q14 = -.5*hy/(p2z); |
| 401 | per_frame_66=q15 = p2z; |
| 402 | per_frame_67=q16 = .1+.02*q26*bnot((index+2)%3)*p2z*exp(-p2z/100); |
| 403 | per_frame_68= |
| 404 | per_frame_69= |
| 405 | per_frame_70=p3z = bnot(trig3)* (p3z + (5+p3z)*speed/fps)+trig3*z0; |
| 406 | per_frame_71=p3z = max(p3z,.1); |
| 407 | per_frame_72=q17 = -1.4*hx/(p3z); |
| 408 | per_frame_73=q18 = 2*hy/(p3z); |
| 409 | per_frame_74=q19 = p3z; |
| 410 | per_frame_75=q20 = .1+.02*q26*bnot((index+2)%3)*p3z*exp(-p3z/100); |
| 411 | per_pixel_1=zoom = 1.2 + .2 *sin(time/3); |
| 412 | comp_1=`float2 d, uv_light1; |
| 413 | comp_2=`float3 dx, dy, c1, c2, c3, c4, light1_dy; |
| 414 | comp_3=`float2 numerator, denominator, fraction; |
| 415 | comp_4=`float2 c,bipolar; |
| 416 | comp_5=` |
| 417 | comp_6=`shader_body |
| 418 | comp_7=`{ |
| 419 | comp_8=` |
| 420 | comp_9=`// bipolar fractal code |
| 421 | comp_10=` |
| 422 | comp_11=`uv = 0.5 + (uv-0.5)*4; // try apply some overall zoom in or out, works good in play with number of iterations |
| 423 | comp_12=`float cutoff = 0.96; |
| 424 | comp_13=`int n = 1; // number of radial mirrors |
| 425 | comp_14=`float s = 0.333; // logarithmic zoom factor |
| 426 | comp_15=`int depth = 1; //number of fractal iterations |
| 427 | comp_16=` |
| 428 | comp_17=`for(int i = 0; i<depth;i++){ |
| 429 | comp_18=` c = (uv-0.5)*2*aspect.wz; |
| 430 | comp_19=` numerator = (c + float2(q21,q22))*64; |
| 431 | comp_20=` denominator = c + float2(q23,q24); |
| 432 | comp_21=` fraction = float2( numerator.x*denominator.x + numerator.y*denominator.y, |
| 433 | comp_22=` numerator.y*denominator.x - numerator.x*denominator.y)/ |
| 434 | comp_23=` (denominator.x*denominator.x + denominator.y*denominator.y); |
| 435 | comp_24=` c = fraction-0.5; // kind of a Moebius transformation |
| 436 | comp_25=` bipolar = float2(n*atan2(c.x,c.y)*M_INV_PI_2*2+q26,s*aspect.w*log(length(c))+q27); |
| 437 | comp_26=` uv = 0.5 + (0.5 - abs( frac( bipolar * 0.5 ) * 2.0 - 1.0 ))*cutoff; // mirror |
| 438 | comp_27=`} |
| 439 | comp_28=` |
| 440 | comp_29=` |
| 441 | comp_30=` float2 d = texsize.zw*4; |
| 442 | comp_31=` float3 dx = ( 2*GetBlur1(uv+float2(1,0)*d)-2*GetBlur1(uv-float2(1,0)*d) ); |
| 443 | comp_32=` float3 dy = ( 2*GetBlur1(uv+float2(0,1)*d)-2*GetBlur1(uv-float2(0,1)*d) ); |
| 444 | comp_33=` float2 uv_y = uv+float2(dx.y,dy.y)*0.25; |
| 445 | comp_34=` |
| 446 | comp_35=`ret = GetPixel(uv+float2(dx.y,dy.y)*0.015).y*0.6; |
| 447 | comp_36=`ret = lerp(float3(1,2,4),float3(-1.5,-1.5,-3),(1-ret.y)*1 - 0.5 + length(0-uv_y)); |
| 448 | comp_37=`ret = lerp(ret,float3(1,0.5,0),length(uv)); |
| 449 | comp_38=`} |